#ifndef CLOCKMENU_H
#define CLOCKMENU_H

#include <QWidget>
#include <QTimer>
#include <QTime>
#include "QPainter"
#include <QDebug>
#include <QDate>
#include <QDateTime>
#include <QEvent>
#include <widget.h>
#include <QMouseEvent>

namespace Ui {
class clockmenu;
}


class clockmenu : public QWidget
{
    Q_OBJECT

public:
    explicit clockmenu(QWidget *parent = nullptr);
    void Timer_init();
    ~clockmenu();

protected:
    //重写绘图事件，虚函数
    void paintEvent(QPaintEvent *);
    bool eventFilter(QObject *obj, QEvent *event) override;
private slots:
    void NextPage();
    void on_pushButton_2_clicked();

private:
    Ui::clockmenu *ui;
    QTimer realtimeclock;

};


extern clockmenu* lock;

#endif // CLOCKMENU_H
